package com.benjaminwan.read.free.common

import android.content.Context
import android.content.SharedPreferences
import androidx.navigation.navOptions
import com.benjaminwan.read.free.R

val Context.appPrefs: SharedPreferences
    get() = getSharedPreferences("reader_free_tool", Context.MODE_PRIVATE)

val defaultNavOptions = navOptions {
    anim {
        enter = R.anim.slide_right_in
        exit = R.anim.slide_left_out
        popEnter = R.anim.slide_left_in
        popExit = R.anim.slide_right_out
    }
}

val singleTopNavOptions = navOptions {
    this.launchSingleTop = true
}

const val BaseUrl = "http://www.4d4y.com/forum/"